Board

Board.Save.BoardSaveGameManager

BoardSaveGameManager.UpdateSaveGame(string, byte[], BoardSaveGameMetadataChange) Method

Updates an existing saved game with new payload and metadata.

public static System.Threading.Tasks.Task<Board.Save.BoardSaveGameMetadata> UpdateSaveGame(string saveId, byte[] payload, Board.Save.BoardSaveGameMetadataChange metadataChange);

Parameters

saveId System.String

The unique identifier for the save game to update.

payload System.Byte[]

The new save game payload (serialized game state).

metadataChange BoardSaveGameMetadataChange

The new metadata for the save game (required).

Returns

System.Threading.Tasks.Task<BoardSaveGameMetadata>
The task object representing the asynchronous operation, returning the updated metadata.

Exceptions

System.ArgumentNullException
saveId, payload, or metadataChange is null.